package com.itheima.Synchronized3;

public class DrawThread extends Thread{
    private Account account;

    public DrawThread(String name , Account account) {
        super( name);
        this.account = account;
    }


    @Override
    public void run() {
        account.getmoney(1000000);
    }
}
